<div class="top-bar">
    <div class="content-area">
        {if condition="$user_info eq false"}
            <a href="{:url('login/index')}">登录</a>
        {else}
            <a href="{:url('login/logout')}">退出登录</a>
        {/if}
        <a href="{:url('user/index')}">个人中心</a>
    </div>
</div>